home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 February / february_2000.iso / site building / GoLive 4.0 Tryout / data1.cab / Apps / Modules / JScripts / Actions / Variables / Test Variable.action < prev    next >
Encoding:
Text File  |  1999-08-05  |  4.4 KB  |  112 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <meta name="generator" content="Adobe GoLive 4">
  6.         <title>Test Variable Action</title>
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Test Variable Action</font><font>
  12.             <hr>
  13.             </font></center>
  14.         <p>
  15.         <csactionclass name="Check State" function="CSCheckState" nsversion="3" ieversion="4" actiontype="3"> </p>
  16.         <p>
  17.         <csactionparam name="statevar" type="GLActionStateValueParam"></p>
  18.         <p>
  19.         <csactionparam name="cmp" type="GLActionEnumParam"></p>
  20.         <p>Eq:<font>
  21.         <csactionenum name="Equal" value="'=='">
  22.         </font></p>
  23.         <p>Neq:<font>
  24.         <csactionenum name="Not equal" value="'!='">
  25.         </font></p>
  26.         <p>Lt:<font>
  27.         <csactionenum name="Less Than" value="'<'">
  28.         </font></p>
  29.         <p>Lte:<font>
  30.         <csactionenum name="Less or Equal" value="'<='">
  31.         </font></p>
  32.         <p>Gt:<font>
  33.         <csactionenum name="Greater Than" value="'>'">
  34.         </font></p>
  35.         <p>Gte:<font>
  36.         <csactionenum name="Greater or Equal" value="'>='">
  37.         </font></p>
  38.         <p><font></csactionparam>
  39.         </font></p>
  40.         <p></csactionclass>
  41.          </p>
  42.         <p>
  43.         <script language="JavaScript1.2" src="../../ActionScripts/State.scpt"><!--
  44. CSStateArray = new Array;
  45. function CSCheckState(action)
  46. {
  47.     if(CSStateArray[action[1]] == action[2])
  48.         return true;
  49.     else
  50.         return false;
  51. }
  52. // -->
  53.         </script>
  54.          </p>
  55.         <p>
  56.         <table cool width="253" height="123" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  57.             <tr height="1" cntrlrow>
  58.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  59.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  60.                 <td width="48" height="1"><spacer type="block" width="48" height="1"></td>
  61.                 <td width="198" height="1"><spacer type="block" width="198" height="1"></td>
  62.             </tr>
  63.             <tr height="3">
  64.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  65.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  66.                 <td width="48" height="3"><spacer type="block" width="48" height="3"></td>
  67.                 <td width="198" height="3"><spacer type="block" width="198" height="3"></td>
  68.             </tr>
  69.             <tr height="2">
  70.                 <td width="1" height="2"><spacer type="block" width="1" height="2"></td>
  71.                 <td width="4" height="2"><spacer type="block" width="4" height="2"></td>
  72.                 <td width="48" height="2"><spacer type="block" width="48" height="2"></td>
  73.                 <td width="198" height="95" colspan="1" rowspan="3" valign="top" align="left" xpos="52">
  74.                     <csactioncntrl name="statevar" x="52" y="3" width="192" height="89" alignx="scale" aligny="top">
  75.                 </td>
  76.             </tr>
  77.             <tr height="28">
  78.                 <td width="1" height="28"><spacer type="block" width="1" height="28"></td>
  79.                 <td width="4" height="28"><spacer type="block" width="4" height="28"></td>
  80.                 <td width="48" height="28" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  81.                     <csactioncntrl type="StaticText" value="Variable" x="4" y="5" width="47" height="16" alignx="left" aligny="top">
  82.                 </td>
  83.             </tr>
  84.             <tr height="65">
  85.                 <td width="1" height="65"><spacer type="block" width="1" height="65"></td>
  86.                 <td width="4" height="65"><spacer type="block" width="4" height="65"></td>
  87.                 <td width="48" height="65" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  88.                     <csactioncntrl type="StaticText" value="Value" x="4" y="33" width="36" height="16" alignx="left" aligny="top">
  89.                 </td>
  90.             </tr>
  91.             <tr height="1">
  92.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  93.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  94.                 <td width="48" height="1"><spacer type="block" width="48" height="1"></td>
  95.                 <td width="198" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="52">
  96.                     <csactioncntrl name="cmp" x="52" y="98" width="192" height="16" alignx="scale" aligny="top">
  97.                 </td>
  98.             </tr>
  99.             <tr height="21">
  100.                 <td width="1" height="21"><spacer type="block" width="1" height="21"></td>
  101.                 <td width="4" height="21"><spacer type="block" width="4" height="21"></td>
  102.                 <td width="48" height="21" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  103.                     <csactioncntrl type="StaticText" value="Oper." x="4" y="99" width="36" height="16" alignx="left" aligny="top">
  104.                 </td>
  105.             </tr>
  106.         </table>
  107.         </p>
  108.         <p> 
  109.     </body>
  110.  
  111. </html>
  112.